package com.flute.framework.search.highlight;

/**
 * 标红的属性类，存放开始、结束标签和关键字
 * @author Dave
 *
 */
public class MarkPosition {
	private int start;
	private int end;
	private String source;

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getEnd() {
		return end;
	}

	public void setEnd(int end) {
		this.end = end;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	@Override
	public int hashCode() {
		return (source + String.valueOf(start) + String.valueOf(end))
				.hashCode();
	}
}
